import request from '../../utils/request';
let baseRequest_url = "http://127.0.0.1:4890/portal";
//  --------------------------------------------------------------------------------------------------------------- //
// 工作室列表查询
export const fetchWorkRoomListData = query => {
    return request({
        url: baseRequest_url+'/admin/workroom/findWorkRoomListPage',
        method: 'get',
        params: query
    });
};
// 工作室详细查询
export const fetchWorkRoomDetailData = query => {
    return request({
        url: baseRequest_url+'/admin/workroom/findWorkRoomInfoById/'+query,
        method: 'get'
    });
};
// 保存工作室数据
export const saveWorkRoom = data => {
    return request({
        url: baseRequest_url+'/admin/workroom/saveWorkRoom',
        method: 'post',
        data: data
    });
};
// 删除工作室数据
export const deleteWorkRoomById = data => {
    return request({
        url: baseRequest_url+'/admin/workroom/deleteWorkRoomById/'+data,
        method: 'post'
    });
};
//  --------------------------------------------------------------------------------------------------------------- //
// 获取工作室手艺人列表信息
export const findWorkRoomBarberListPage = query => {
    return request({
        url: baseRequest_url+'/admin/workroom/findWorkRoomBarberList/'+query,
        method: 'get',
    });
};
// 获取工作室服务项目列表信息
export const findWorkRoomServiceProjectListPage = query => {
    return request({
        url: baseRequest_url+'/admin/workroom/findWorkRoomServiceProjectList/'+query,
        method: 'get',
    });
};
// 获取工作室发型师服务项目价格列表信息
export const findWorkRoomBarberProjectPriceListPage = query => {
    return request({
        url: baseRequest_url+'/admin/workroom/findWorkRoomBarberProjectPriceList/'+query,
        method: 'get',
    });
};
//  --------------------------------------------------------------------------------------------------------------- //
// 工作室添加理发师并给服务项目设置金额
export const configWorkRoomBarberProjectPriceInfo = data => {
    return request({
        url: baseRequest_url+'/admin/workroom/configWorkRoomBarberProjectPriceInfo',
        method: 'post',
        data: data
    });
};
// 工作室配置服务项目
export const configWorkRoomProject = data => {
    return request({
        url: baseRequest_url+'/admin/workroom/configWorkRoomProject',
        method: 'post',
        data: data
    });
};
// 工作室配置发型师
export const configWorkRoomBarber = data => {
    return request({
        url: baseRequest_url+'/admin/workroom/configWorkRoomBarber',
        method: 'post',
        data: data
    });
};
//  --------------------------------------------------------------------------------------------------------------- //
// 工作室取消服务项目
export const cleanWorkRoomProject = data => {
    return request({
        url: baseRequest_url+'/admin/workroom/cleanWorkRoomProject',
        method: 'post',
        data: data
    });
};
// 工作室取消理发师
export const cleanWorkRoomBarber = data => {
    return request({
        url: baseRequest_url+'/admin/workroom/cleanWorkRoomBarber',
        method: 'post',
        data: data
    });
};
// 工作室取消服务价格项目
export const cleanWorkRoomBarberPrice = data => {
    return request({
        url: baseRequest_url+'/admin/workroom/cleanWorkRoomBarberPrice',
        method: 'post',
        data: data
    });
};
// 工作室配置价格状态
export const configWorkRoomDisable = data => {
    return request({
        url: baseRequest_url+'/admin/workroom/configWorkRoomDisable',
        method: 'post',
        data: data
    });
};